Skip to content

Conversation

@hparfr
Copy link
Contributor

@hparfr hparfr commented Jun 10, 2025

No description provided.

mourad-ehm and others added 30 commits June 10, 2025 13:05
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_generator/
Currently translated at 100.0% (8 of 8 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_generator/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_generator/es/
Currently translated at 12.5% (1 of 8 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_generator/it/
A lot may have happen, and it is possible to have done some MO, received some PO using this lot, maybe there is even stock on hand with this lot and should not delete it or it is lost everywhere.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_generator/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_generator/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_generator/es/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_generator/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_generator
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_generator/pt_BR/
@hparfr hparfr force-pushed the 18.0-mig-sale_order_lot_generator branch from 2fae935 to 45298dc Compare June 10, 2025 12:54
@rousseldenis
Copy link
Contributor

/ocabot migration sale_order_lot_generator

self.assertEqual(self.sol3.lot_id.name, lot_number)
for line in self.order1.picking_ids.move_line_ids:
if line.product_id.id == self.prd_flipover.id:
self.assertEqual(line.lot_id, self.sol1.lot_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hparfr Could you check why some tests lines are not accessed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... so tests are not covered by tests !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and that's good. Because, I didn't pay enough attention. There is no move_lines_ids at this time. So the code inside this for loop is never executing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course. So, could you check why those lines are necessary ? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this good catch @rousseldenis
I've just added a fix.

There is no move_lines because there is no quants with these
freshly created lots.

This tests was probably not working in previous versions.
restrict_lot_id is from stock_restrict_lot module.
stock_restrict_lot is a dependency of sale_order_lot_selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.